package com.fs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.pojo.User;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @author hyy
 * @version 1.0
 * @description: 用户映射层
 * @date 2024/10/14 11:02
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    /**
     * 条件分页查询人员部门职位表
     * @param user
     * @return
     */
    List<User> selectAll(User user);

    /**
     * 根据id查询人员职位部门表
     * @param userid
     * @return
     */
    User queryById(int userid);
}
